import {
  HYEventStore
} from "hy-event-store"

import {
  getPlayListDetail
} from '../services/music'

const recommendStore = new HYEventStore({
  state: {
    recommendSongInfo: {}
  },
  actions: {
    fetchRecommendSongsAction(ctx) {
      getPlayListDetail(479701701).then(res => {
        ctx.recommendSongInfo = res.playlist
      })
    }
  }
})

export default recommendStore